package com.tgy.bean;

import org.springframework.beans.factory.FactoryBean;

public class DogFactoryBean implements FactoryBean<Dog> {
  @Override
  public Dog getObject() throws Exception {
    return new Dog(3);
  }

  @Override
  public Class<?> getObjectType() {
    return Dog.class;
  }

  @Override
  public boolean isSingleton() {
    return true;
  }
}
